package com.study.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**  
 *  实体类
 */  
public class Repair  
{  
    /********** 实体的属性 ***********/  
     //主键 自增
    private int id;
    private String title;  //标题
    private String building;  //几栋
    private String houseNum;  //门牌号
    private String name;  //报修人
    private String detail;  //报修内容
    private String userid;
    private String phone;  //报修人电话
    private int state;  //处理
    private String evaluation;  //评价
    private String cpTime;  //投诉时间
	
   

	/********** 构造方法 ***********/  
    public Repair() {  
      
    }  
  
    public Repair(String title, String building, String houseNum, String name, String detail, String phone, int state, String evaluation,String cpTime) {  
        this.title = title;  
        this.building = building;  
        this.houseNum = houseNum;  
        this.name = name;  
        this.detail = detail;  
        this.phone = phone;  
        this.state = state;  
        this.evaluation = evaluation;  
        this.cpTime = cpTime;
    }  
  
    /********** get/set 方法 ***********/  
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getTitle() {  
        return title;  
    }  
  
    public void setTitle(String title) {  
        this.title = title;  
    }
    
      
    public String getBuilding() {  
        return building;  
    }  
  
    public void setBuilding(String building) {  
        this.building = building;  
    }
    
      
    public String getHouseNum() {  
        return houseNum;  
    }  
  
    public void setHouseNum(String houseNum) {  
        this.houseNum = houseNum;  
    }
    
      
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }
    
      
    public String getDetail() {  
        return detail;  
    }  
  
    public void setDetail(String detail) {  
        this.detail = detail;  
    }
    
      
    public String getPhone() {  
        return phone;  
    }  
  
    public void setPhone(String phone) {  
        this.phone = phone;  
    }
    
      
    public int getState() {  
        return state;  
    }  
  
    public void setState(int state) {  
        this.state = state;  
    }
    
      
    public String getEvaluation() {  
        return evaluation;  
    }  
  
    public void setEvaluation(String evaluation) {  
        this.evaluation = evaluation;  
    }
    
    
    public String getUserid() {
		return userid;
	}
    public void setUserid(String userid) {
		this.userid = userid;
	}
    
    public String getCpTime() {
		return cpTime;
	}

	public void setCpTime(String cpTime) {
		this.cpTime = cpTime;
	}

	@Override
	public String toString() {
		return "Repair [id=" + id 
				+ ", title=" + title
				+ ", building=" + building
				+ ", houseNum=" + houseNum
				+ ", name=" + name
				+ ", detail=" + detail
				+ ", phone=" + phone
				+ ", state=" + state
				+ ", evaluation=" + evaluation
				+ ", cpTime=" + cpTime
				+ "]";
    }
}